package org.common.utils.tuple;

/**
 * 两个Object类型，两个object的元组
 * @author zhouzhibing
 * @date 2025/5/19
 */
public class TupleObject2<T1 , T2> {
    public T1 one;
    public T2 two;

    TupleObject2(T1 one, T2 two) {
        this.one = one;
        this.two = two;
    }

    public static <T1 , T2> TupleObject2<T1 , T2> of(T1 one, T2 two) {
        return new TupleObject2<>(one, two);
    }

    public T1 getOne() {
        return one;
    }

    public T2 getTwo() {
        return two;
    }
}